namespace Excerise;

public class Order
{
    public int Id { get; set; }
    public string Name { get; set; }
    public decimal Total { get; set; }

    public Order(int id, string name, decimal total)
    {
        Id = id;
        Name = name;
        Total = total;
    }

    public override string ToString()
    {
        return $"订单编号:{Id},客户姓名:{Name},订单金额:{Total}";
    }
}